/*
 * @Author: 袁三金
 * @Date: 2023-09-25 18:42:45
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-10-13 14:49:38
 * @Description: 请填写简介
 */
//定义用户相关数据的ts类型
//用户登录接口携带参数的ts类型
export interface loginFormData {
  username: string
  password: string
  data: string
  message: string
  ok: boolean
  code: number
}
// 定义全部接口返回数据都拥有ts类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
//定义登录接口返回数据类型
export interface loginResponseData extends ResponseData {
  data: string
}
//定义获取用户信息返回数据类型
export interface userInfoResponseData extends ResponseData {
  data: {
    checkUser: any
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
